package com.fs.uc.api.wechat.service;

import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.jboss.resteasy.annotations.jaxrs.QueryParam;

/**
 * @author 崔超
 * 2021/12/8
 */
@Path("/jscode2session")
@RegisterRestClient
@Produces(MediaType.TEXT_PLAIN)
public interface WechatApiService {
    @GET
    String openIdApi(@QueryParam("appid") String appId,@QueryParam("secret") String secret,
                           @QueryParam("js_code") String jscode,@QueryParam("grant_type") String type);
}
